package com.hyf.glidev4.activity;

import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.Window;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.hyf.glidev4.BaseActivity;
import com.hyf.glidev4.R;

import butterknife.BindView;

public class GlideBigGifActivity extends BaseActivity {

    @BindView(R.id.iv_glide_big)
    ImageView imageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_glide_big_gif);
        getSupportActionBar().hide();
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

        // 加载网络gif图片
        Glide
                .with(this)
                .load(R.mipmap.biggif)
                .into(imageView);
    }

    @Override
    protected boolean setDisplayHomeAsUpEnabled() {
        return true;
    }
}
